//
//  YHJAPIHost.m
//  Youhuiju
//
//  Created by yutenys on 16/7/13.
//  Copyright © 2016年 yutenys. All rights reserved.
//

#import "YHJAPIHost.h"

@implementation YHJAPIHost
+(instancetype)shareHost
{
    static dispatch_once_t predicate = 0;
    static YHJAPIHost *_instance = nil;
    
    dispatch_once(&predicate, ^{
        _instance = [[self alloc]init];
    });
    return _instance;
}

- (instancetype)init

{
    
    self = [super init];
    if (self) {
        
#ifdef DEBUG//测试服接口
        self.debug = YES;
        self.baseUrl = @"";
#else//正式服接口
        self.debug = NO;
        self.baseUrl = @"";
#endif
            }
    
    return self;
}

@end
